<%--
 *  File:    ControlGLAccountMasterEdit.jsp
 *  @Author: Stephen Liu
 *  Date:    Monday, January 19, 2004

 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>

<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.*" %>

<%@ page contentType ="text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  Category cat = Category.getInstance("jsp.ControlGLAccountMasterEdit");
  String strModuleName = "GL";
  String privilegeCode = "40109";
%>

<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/SessionTimeout.inc" %>
<%@ include file="/inc/Security.inc" %>

<html>
<head>
<title>controlglaccountmasteredit</title>
<PageFlow:CheckPageFlow pageName="controlglaccountinfoview"/>
<%
  HashMap glaccountinfo = (HashMap) pageContext.getAttribute("glaccountinfo");
  if (glaccountinfo == null)
    glaccountinfo = new HashMap();

  if (glaccountinfo.get("entitytype") != null && glaccountinfo.get("entitytype").toString().equals("1"))
    pageContext.setAttribute("glaccountlistid", glaccountinfo.get("entityid"));
  
  HashMap booksetinfo = (HashMap) pageContext.getAttribute("booksetinfo");
  if (booksetinfo == null)
    booksetinfo = new HashMap();
  Object booksettype1 = booksetinfo.get("booksettype");
  String booksettype=null;
  if(null != booksettype1)
  {  
  	booksettype=booksettype1.toString();
  } else {
	                                                   
	  booksettype = new String("");                    
  }
%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="../css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript">
function page_initpage()
 {
     if(document.frm.booksettype.value!='3')
     {
        document.all("glaccountmap") .style.display="none";
     }
 }
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="javascript:set_contentleft_height1(420);page_initpage();">
<form name="frm" method="post" action="../Dispatcher">
  <custom:hidden name="glaccountinfo" property="glaccountid"/>
  <custom:hidden property="glaccountlistid"/>
  <custom:hidden name="booksetinfo" property="booksettype"/>

<table id="topTable" border=0 cellpadding=0 cellspacing=0 width="100%">
  <tr>
    <td valign=top>
      <table border=0 cellpadding=1 cellspacing=0 width="100%">
        <tbody>
          <tr>
           <td bgcolor=#000000 style="PADDING-BOTTOM: 1px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; PADDING-TOP: 0px">
              <table bgcolor=#000000 border=0 cellpadding=0 cellspacing=0 width="100%">
                <tr>
                  <td bgcolor=#ffffff style="PADDING-BOTTOM: 3px; PADDING-LEFT: 3px; PADDING-RIGHT: 3px; PADDING-TOP: 3px">
                   <div id=div2 style="HEIGHT: 245px; OVERFLOW: auto">
                      <table border="1" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" align="center" width="100%" cellpadding="1">
                        <tr>
                          <td width="107" class="td-text" height="20"><%= label.getLabelName("L_GLAccountCode") %><%= label.getLabelName("L_Colon") %></td>
                          <td width="300">
                            <custom:write name="glaccountinfo" property="accountcode"/>
                          </td>
                          <td class="td-text" width="110" ><%= label.getLabelName("L_QuickCode") %><%= label.getLabelName("L_Colon") %></td>
                          <td>
                            <custom:write name="glaccountinfo" property="quickcode" nbsp="true"/>      
                          </td>
                        </tr>
                        <tr>
                          <td class="td-text" ><%= label.getLabelName("L_GLAccountName") %><%= label.getLabelName("L_Colon") %></td>
                          <td height="18" colspan="3">
                            <custom:write name="glaccountinfo" property="accountname" nbsp="true"/>
                          </td>
                        </tr>
                        <tr id="glaccountmap">
                          <td width="107" class="td-text" height="20"><%= label.getLabelName("L_FinanceGlaccount") %><%= label.getLabelName("L_Colon") %></td>
                          <td width="300">
                            <custom:write name="glaccountmap" property="targetaccountcode" />&nbsp
                            <custom:write name="glaccountmap" property="targetaccountname" />
                          </td>
                          <td class="td-text" >&nbsp</td>
                          <td>&nbsp</td>
                        </tr>
                        <tr>
                          <td class="td-text" height="20"><%= label.getLabelName("L_CreateDate") %><%= label.getLabelName("L_Colon") %></td>
                          <td>
                            <custom:write name="glaccountinfo" property="createdate" dataFormatName="dateformat" nbsp="true"/>
                          </td>
                          <td class="td-text" ><%= label.getLabelName("L_Datelastupdate") %><%= label.getLabelName("L_Colon") %></td>
                          <td>
                            <custom:write name="glaccountinfo" property="datelastupdated" dataFormatName="dateformat" nbsp="true"/>
                          </td>
                        </tr>
                        <tr>
                          <td class="td-text" height="20"><%= label.getLabelName("L_RptDescription") %><%= label.getLabelName("L_Colon") %></td>
                          <td colspan="3" valign="top">
                            <custom:write name="glaccountinfo" property="description" nbsp="true"/>
                          </td>
                        </tr>
                      </table>
                    </div>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </td>
  </tr>
  <tr>
    <td class=summary_top></td>
  </tr>
  <tr>
    <%@ include file="ControlGLAccountInfoBtn.inc" %>
  </tr>
</table>
</form>
</body>
</html>
